package com.groupfour.attendancemanagementsystem.service.impl;

import com.groupfour.attendancemanagementsystem.dao.AttendanceRecordDao;

import com.groupfour.attendancemanagementsystem.entity.DTO.AttendanceRecordDTO;
import com.groupfour.attendancemanagementsystem.entity.VO.*;
import com.groupfour.attendancemanagementsystem.service.AttendanceRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AttendanceRecordServiceImpl implements AttendanceRecordService {

    private AttendanceRecordDao attendanceRecordDao;

    @Autowired
    public AttendanceRecordServiceImpl(AttendanceRecordDao attendanceRecordDao) {
        this.attendanceRecordDao = attendanceRecordDao;
    }

    @Override
    public List<AttendanceRecordVO> selectAttendanceRecord(AttendanceRecordDTO attendanceDTO) {
        return this.attendanceRecordDao.selectAttendanceRecord(attendanceDTO);
    }


    @Override
    public List<RDepartmentVO> selectDepartmentName() {
        return this.attendanceRecordDao.selectDepartmentName();
    }

    @Override
    public List<RMajorVO> selectMajorName() {
        return this.attendanceRecordDao.selectMajorName();
    }

    @Override
    public List<String> selectClassesName(String gradeName) {
        return this.attendanceRecordDao.selectClassesName(gradeName);
    }

    @Override
    public List<AttendanceRecordVO> selectGroupName() {
        return this.attendanceRecordDao.selectGroupName();
    }

    @Override
    public List<CourseVO> selectCourseName() {
        return this.attendanceRecordDao.selectCourseName();
    }

    @Override
    public List<CourseVO> selectTeacherName() {
        return this.attendanceRecordDao.selectTeacherName();
    }


}



